<?php
class Admin extends CI_Controller
{
	function index()
	{
		if (!$this->ion_auth->is_admin())
		{
			$this->session->set_flashdata('message', 'You must be an admin to view this page');
			redirect('welcome/index');
		}
		$this->load->view('admin_view');
	}
}
?>